import { lazy } from "react";
import { Navigate } from "react-router-dom";

const MainIndex = lazy(() => import("./index"));
const Home = lazy(() => import("../Home/Home"));

export default [
  {
    path: "/main",
    element: <MainIndex />,
    children: [
      {
        path: "/main",
        element: <Navigate replace to="/main/home" />,
      },
      {
        path: "/main/home",
        element: <Home />,
      },
    ],
  },
];
